package com.ruoyi.user.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.manage.mapper.AvatarMapper;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ZhangZhongGen
 */
@RestController
@Slf4j
@Api(tags = "头像管理模块")
@RequestMapping("/userWeixin/avatar")
public class UserAvatarController extends BaseController {
    @Autowired
    private AvatarMapper avatarMapper;

    @GetMapping("/list")
    public TableDataInfo list(){
        return getDataTable(avatarMapper.selectAvatarList());
    }


}
